<% @page_title = "Administradores" %>

<ul>
  <% for boss in @bosses %>
    <li><%= link_to "[X]", { # link_to options
                             :controller => 'bosses',
                             :action => 'destroy',
                             :id => boss},
                           { # html options
                             :method  => :delete,
                             :confirm => "Deseja realmente excluir #{boss.name}?"
                           } %>
        <%= h(boss.name) %>
    </li>
  <% end %>
</ul>


<br />

<%= link_to 'Adicionar Administrador', new_boss_path %>
